package myWork;

public class Jiechen {
    public static void main(String[] args) {
        int sum = method(5);
        System.out.println(sum);
    }
    public static int method(int i){
        if (i==1){
            return 1;
        }else{
            return i*method(i-1);
        }
    }
}
